﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class TaskNpc:Npc
    {
        private string taskInfo;
        public TaskNpc(string name, NpcType type,string taskInfo) : base(name,type)
        {
            this.taskInfo = taskInfo;
        }

        public override void speck()
        {
            Console.WriteLine("你终于来了，我正需要你的帮助呢！！！！");
            Console.WriteLine("NPC:{0},任务:{1}",base.Name,this.taskInfo );
        }
    }
}
